import Vue from 'vue'
import VueRouter from 'vue-router'
import home from '@/App.vue'

import phone from '@/views/phone.vue'
import pc from '@/views/pc.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component:home
  },
  {
    path:'/phone',
    name:'phone',
    component:phone
  },
  {
    path:'/pc',
    name:'pc',
    component:pc
  }

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
